import Vue from 'vue'
import App from './App.vue'
import './registerServiceWorker'
import router from './router'
import store from './store'
import * as goods from '@/filters/goods.js'
import '@/api/mock'
import axios from 'axios'
Vue.config.productionTip = false
axios.defaults.baseURL = '/api'
Vue.prototype.$http = axios
axios.defaults.headers.post['Content-Type'] = 'application/json';
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')

Object.keys(goods).forEach(key=>{
  Vue.filter(key,goods[key]);
})